/**
 *  tabbar配置
 *  pagePathName 对应 globalHomePage/index页面组件
 */

// 通用-消息
const universalMsgTabbar = {
  customNavigation: false,
  pagePathName: "universalMsgTabbar",
  pagePath: "subHome/tabbars/msg",
  text: "消息",
  // iconPath: "/static/images/tabbar/msg.png",
  // selectedIconPath: "/static/images/tabbar/msg_fill.png",
  iconPath: "meun-xinxi",
  selectedIconPath: "meun-xinxi",
  iconType: "font",
  whether: false,
  count: 23,
};

// 通用-通讯录
const universalHomeTabbar = {
  customNavigation: false,
  pagePathName: "universalHomeTabbar",
  pagePath: "subHome/tabbars/home",
  text: "首页",
  // iconPath: "/static/images/tabbar/book.png",
  // selectedIconPath: "/static/images/tabbar/book_fill.png",
  iconPath: "meun-shouye",
  selectedIconPath: "meun-shouye",
  iconType: "font",
  whether: true,
};

// 通用-工作台
const universalFuncTabbar = {
  pagePathName: "universalFuncTabbar",
  pagePath: "subHome/tabbars/func",
  text: "功能",
  // iconPath: "/static/images/tabbar/cell.png",
  // selectedIconPath: "/static/images/tabbar/cell_fill.png",
  iconPath: "meun-fenlei",
  selectedIconPath: "meun-fenlei",
  iconType: "font",
  whether: false, // 首页默认选中
  customNavigation: false,
};

// 通用-数据看板
const universalDataShowTabbar = {
  pagePathName: "universalDataShowTabbar",
  pagePath: "subHome/tabbars/home",
  text: "数据",
  // iconPath: "/static/images/tabbar/data.png",
  // selectedIconPath: "/static/images/tabbar/data_fill.png",
  iconPath: "meun-gaishuai",
  selectedIconPath: "meun-gaishuai",
  iconType: "font",
  whether: false, // 首页默认选中
  customNavigation: false,
};

// 通用-我的页面
const universalUserTabbar = {
  customNavigation: false,
  pagePathName: "universalUserTabbar",
  pagePath: "subHome/tabbar/user",
  text: "我的",
  // iconPath: "/static/images/tabbar/user.png",
  // selectedIconPath: "/static/images/tabbar/user_fill.png"
  iconPath: "meun-wode",
  selectedIconPath: "meun-wode",
  iconType: "font",
};

// 添加
const addTabbar = {
  customNavigation: true,
  pagePathName: "addTabbar",
  text: "添加",
  iconType: "font",
  whether: false,
};

export default {
  // 角色通用tabbar （如果系统不同角色的tabar都一致时只需要建立一个）
  universalTabbar: [universalHomeTabbar, universalDataShowTabbar, addTabbar, universalMsgTabbar, universalUserTabbar],
};
